<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			function unique(arr) {
				var newArr = [];
				for (var i = 0; i < arr.length; i++) {
					if (newArr.indexOf(arr[i]) === -1) {
						newArr.push(arr[i]);
					}
				}
				return newArr;
			}
			var demo = unique([1, 3, 4, 6, 7, 7, 2, 4, 5, 'w', 'e', 'w']);
			console.log(demo);
		</script>
	</head>
	<body>
	</body>
</html>
